/**
 * 
 */
package org.myontology.controller.rules.impl;

import org.myontology.controller.AttributeHolder;
import org.myontology.controller.SesameSession;
import org.myontology.controller.rules.Rule;
import org.myontology.users.Login;

/**
 *  @author <a href="michael.hackl@sti2.at">Michael Hackl</a>
 * Project: Myontology - www.myontology.org
 * STI
 */
public class LoggedInRule implements Rule {

	/* (non-Javadoc)
	 * @see org.myontology.controller.rules.Rule#check(org.myontology.controller.AttributeHolder)
	 */
	public boolean check(AttributeHolder attributes,SesameSession session) {
		return Login.LOGGED_IN.getValue(attributes);
	}

}
